# $Id: PKGBUILD 62221 2012-01-18 15:34:13Z ttopper $
# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>
# Contributor: miles g <miles@milesgroman.com>
# Contributor: Pierre Bourdon <delroth@gmail.com>

pkgname=python2-lockfile
_pkgsrcname=lockfile
pkgver=0.9.1
pkgrel=1
pkgdesc="Platform-independent file locking module"
license=("MIT")
url="http://code.google.com/p/pylockfile/"
depends=('python2')
source=("http://pylockfile.googlecode.com/files/${_pkgsrcname}-${pkgver}.tar.gz")
arch=('any')
options=(!emptydirs)
md5sums=('4e4c7ea4c4301500da5e7f3b51e01cfe')

package() {
  cd ${srcdir}/${_pkgsrcname}-${pkgver}
  python2 setup.py install --optimize=1 --root=${pkgdir}
  
  install -Dm 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

# vim:set ts=2 sw=2 et:
